import express from "../express/index.js";
// es5中构造函数可以当成类来用

const router = new express.Router(); // Router  既能new 也能 调用 -》 返回的都是路由系统
const childRouter = express.Router();
childRouter.get("/add", function (req, res) {
  res.end("childRouter add");
});
router.use("/user-child", childRouter);
router.get("/add", function (req, res) {
  res.end("user add");
});
router.get("/remove", function (req, res) {
  res.end("user remove");
});

export default router;

// 路由系统2级就够用了
